package org.dzq.sca.service.impl;

import org.dzq.sca.dao.PaymentDao;
import org.dzq.sca.entity.Payment;
import org.dzq.sca.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName: PaymentServiceImpl
 * @Package: org.dzq.sca.service.impl
 * @author: 越
 * @date: 2021/12/9 21:14
 * @Description:
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment) {
        return paymentDao.create(payment);
    }
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
